package test;


import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int initialValue = scanner.nextInt();
        Counter counter = new Counter(initialValue);
        counter.increment();
        System.out.println(+counter.getCounterValue());
        counter.decrement();
        System.out.println(+counter.getCounterValue());
        counter.reset();
        System.out.println(+counter.getCounterValue());
    }
}


